import request from '@/utils/request'

export function login(formData) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data: formData
  })
}

export function getProfile() {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}

/* 获取用户基本信息--->用户头像 */
export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`
  })
}

export function logout() {
  return request({
    url: '',
    method: ''
  })
}
